#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
using namespace std;

void swap(int& x, int& y)
{
	int temp = x;
	x = y;
	y = temp;
}

int main()
{
	int a = 10;
	int b = 100;

	cout << a << endl;
	cout << b << endl;

	int& ra = a;
	int& rb = b;

	swap(ra, rb);
	cout << a << endl;
	cout << b << endl;
	/*swap(a, b);

	cout << a << endl;
	cout << b << endl;*/
	return 0;
}